package test;

import com.xw.echo.core.client.EchoClient;
import com.xw.echo.core.register.HostAndPort;
import com.xw.echo.core.service.UserService;

public class Main {
    public static void main(String[] args) {
        HostAndPort hostAndPort=new HostAndPort("127.0.0.1",8000);
        EchoClient echoClient=new EchoClient(hostAndPort);
        UserService userService = (UserService) echoClient.creatProxy(UserService.class);
        System.out.println(userService.login("韦城"));

    }
}
